
#include "AudioManager.h"

// MUSIC
extern void _preloadMusic(const char* _file)
{
    [[AudioManager instance] preloadMusic:_file];
}

extern void _unloadMusic(const char* _file)
{
    [[AudioManager instance] unloadMusic:_file];
}

extern void _playMusic(const char* _file, bool _loop)
{
    [[AudioManager instance] playMusic:_file];
    [[AudioManager instance] setMusicLoop:_file loop:_loop];
}

extern void _stopMusic(const char* _file)
{
    [[AudioManager instance] stopMusic:_file];
}

extern void _setMusicVolume(const char* _file, float _volume)
{
    [[AudioManager instance] setMusicVolume:_file volume:_volume];
}

extern void _setMusicLoop(const char* _file, bool _loop)
{
    [[AudioManager instance] setMusicLoop:_file loop:_loop];
}

extern void _setGeneralMusicVolume(float _volume)
{
    [[AudioManager instance] setGeneralMusicVolume:_volume];
}

// SFX
extern void _preloadSfx(const char* _file)
{
    [[AudioManager instance] preloadSfx:_file];
}

extern void _unloadSfx(const char* _file)
{
    [[AudioManager instance] unloadSfx:_file];
}

extern void _playSfx(const char* _file)
{
    [[AudioManager instance] playSfx:_file];
}
